package org.simp.common;
/**
 * @author zhuhaitao at 2014-5-23
 *
 * 
 */
public interface Constants {
	
	/**
	 * 通信节点
	 */
	public static final String NODE = "CONTEXT_NODE";
	
	/**
	 * Context 名字，节点名字
	 */
	public static final String NODE_NAME = "NODE_NAME";
	/**
	 * 节点所在属的域
	 */
	public static final String NODE_DOMAIN = "NODE_DOMAIN";
	
	/**
	 * 节点类型
	 */
	public static final String NODE_TYPE ="NODE_TYPE";
	
	/**
	 * 客户端节点
	 */
	public static final String NODE_TYPE_CLIENT="NODE_TYPE_CLIENT";
	/**
	 * 聊天服务器节点
	 */
	public static final String NODE_TYPE_CHAT ="NODE_TYPE_CHAT";
	
	/**
	 * 路由节点
	 */
	public static final String NODE_TYPE_ROUTER ="NODE_TYPE_ROUTER";
	/**
	 * 群聊服务器节点
	 */
	public static final String NODE_TYPE_CHATGROUP ="NODE_TYPE_CHATGROUP";
	
	/**
	 * 管理端节点
	 */
	public static final String NODE_TYPE_MANAGER ="NODE_TYPE_MANAGER";
	
	/**
	 * 当前节点父节点的名字
	 */
	public static final String NODE_SERVER_NAME = "NODE_SERVER_NAME";
	
	/**
	 * 地址分割符
	 */
	public static final String ADDRESS_SPLIT = "@";
	
	/**
	 * 简单key：value类型
	 */
	public static final String SIMPLE_CONTENT_TYPE="simple";
	/**
	 * 消息类型
	 */
	public static final String CONTENT_TYPE = "ContentType";
	/**
	 * 版本号
	 */
	public static final String VERSION = "1.0";
	/**
	 * 换行符
	 */
	public static final String ENTER = "\n";
	/**
	 * 用户状态
	 */
	public static final String USER_STATUS = "USER_STATUS";
	
	public static final String USER_ONLIEN = "USER_ONLIEN";
	
	public static final String SESSION_USER = "SESSION_USER";
	
	public static final class MessageType{
		
		public static final int NOMAL =0;
		
		public static final int GROUP = 10;
		
		
		
	}

}
